package Fruit;

public class FruitTest {
        public static void main(String[] args) {
            Fruit fruit1 = new Fruit();
            fruit1.setName("苹果");
            fruit1.setArea("云南");
            fruit1.setPrice(100);
            System.out.println("水果名：" + fruit1.getName() + "，产地：" + fruit1.getArea() + "，单价：" + fruit1.getPrice());

            Fruit fruit2 = new Fruit();
            fruit2.setName("香蕉");
            fruit2.setArea("海南");
            fruit2.setPrice(1000);
            System.out.println("水果名：" + fruit2.getName() + "，产地：" + fruit2.getArea() + "，单价：" + fruit2.getPrice());

            Fruit fruit3 = new Fruit();
            fruit3.setName("西瓜");
            fruit3.setArea("新疆");
            fruit3.setPrice(10000);
            System.out.println("水果名：" + fruit3.getName() + "，产地：" + fruit3.getArea() + "，单价：" + fruit3.getPrice());
        }
    }

